package gat.domain.service.backgroundUser.impl;

import com.bitsun.core.common.persistence.BasePService;
import com.bitsun.core.common.persistence.IPService;
import gat.convertor.backgroundUser.RolePermissionsReqDtoConvertor;
import gat.convertor.backgroundUser.RolePermissionsResDtoConvertor;
import gat.domain.service.backgroundUser.RolePermissionsDomainService;
import gat.infrastructure.persistence.dao.backgroundUser.RolePermissionsMapper;
import gat.infrastructure.persistence.po.backgroundUser.RolePermissionsPo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Felix Woo （junfengwstar@gmail.com）
 * @Date: 2019-09-20 19:40
 * @Version: 1.0
 * @Description:
 */
@Slf4j
@Service("permissionsRoleDomainService")
public class RolePermissionsDomainServiceImpl implements RolePermissionsDomainService {

    @Autowired
    private RolePermissionsReqDtoConvertor rolePermissionsReqDtoConvertor;

    @Autowired
    private RolePermissionsResDtoConvertor rolePermissionsResDtoConvertor;

    private IPService<RolePermissionsPo> permissionsRolePoService;

    @SuppressWarnings("SpringJavaAutowiringInspection")
    public RolePermissionsDomainServiceImpl(RolePermissionsMapper permissionsRoleMapper) {
        this.permissionsRolePoService = new BasePService(permissionsRoleMapper);
    }
}